
	
/****** Object:  Stored Procedure [dbo].tblOpicsTransactionUpdate    Script Date: Thursday, October 27, 2011 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sptblOpicsTransactionUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sptblOpicsTransactionUpdate]
GO

	
	

	
/******************************************************************************
**		File: 
**		Name: [dbo].sptblOpicsTransactionUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 27/10/2011 17:41:38
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].sptblOpicsTransactionUpdate
	@ID uniqueidentifier, 
	@ValueDate datetime, 
	@ValueDateInOpics datetime, 
	@DealDate datetime, 
	@BuyCurrency varchar(3), 
	@SellCurrency varchar(3), 
	@CustomerRate decimal(10, 2), 
	@BuyAmount decimal(24, 6), 
	@SellAmount decimal(24, 6), 
	@InternalRate decimal(24, 6), 
	@Customer varchar(20), 
	@Porfolio varchar(20), 
	@Branch varchar(2), 
	@ImportTransactionID uniqueidentifier, 
	@RunningDate datetime, 
	@Status int, 
	@DealNo varchar(10) 
AS

UPDATE [dbo].[tblOpicsTransaction] SET
	[ValueDate] = @ValueDate,
	[ValueDateInOpics] = @ValueDateInOpics,
	[DealDate] = @DealDate,
	[BuyCurrency] = @BuyCurrency,
	[SellCurrency] = @SellCurrency,
	[CustomerRate] = @CustomerRate,
	[BuyAmount] = @BuyAmount,
	[SellAmount] = @SellAmount,
	[InternalRate] = @InternalRate,
	[Customer] = @Customer,
	[Porfolio] = @Porfolio,
	[Branch] = @Branch,
	[ImportTransactionID] = @ImportTransactionID,
	[RunningDate] = @RunningDate,
	[Status] = @Status,
	[DealNo] = @DealNo
WHERE
	[ID] = @ID

GO
